<!--[* $Id: postcalendar_search_options.htm 439 2009-12-31 20:27:57Z craigh $ *]-->
<div>
	<input type="checkbox" id="active_postcalendar" name="active[PostCalendar]" value="1"<!--[if $active]--> checked="checked"<!--[/if]--> />
	<label for="active_postcalendar"><!--[gt text="Calendar" domain="module_postcalendar"]--></label>
    <label for="modvar_PostCalendar____CATEGORIES____<!--[$firstprop]-->_">&nbsp;<!--[gt text='in Categories' domain="module_postcalendar"]-->:&nbsp;</label>
    <!--[gt text="All These Categories" domain="module_postcalendar" assign="allText"]-->
    <!--[nocache]-->
    <!--[foreach from=$catregistry key=property item=category]-->
        <span><!--[selector_category 
        editLink=0 
        category=$category 
        name="modvar[PostCalendar][__CATEGORIES__][$property]" 
        field="id" 
        defaultValue="0"
        all=1
        allText=$allText
        allValue=0]--></span>
    <!--[/foreach]-->
    <!--[/nocache]-->
    &nbsp;<!--[gt text="date range:" domain="module_postcalendar"]-->
	<label for="modvar_PostCalendar_searchstart">&nbsp;<!--[gt text="from" domain="module_postcalendar"]--></label>
    <select id="modvar_PostCalendar_searchstart" name="modvar[PostCalendar][searchstart]">
        <option value="-10"><!--[gt text='last %s years' tag1='10' domain="module_postcalendar"]--></option>
        <option value="-5"><!--[gt text='last %s years' tag1='5' domain="module_postcalendar"]--></option>
        <option value="-2"><!--[gt text='last %s years' tag1='2' domain="module_postcalendar"]--></option>
        <option value="-1"><!--[gt text='last year' domain="module_postcalendar"]--></option>
        <option value="0" selected="selected"><!--[gt text='now' domain="module_postcalendar"]--></option>
    </select>
	<label for="modvar_PostCalendar_searchend">&nbsp;<!--[gt text="to" domain="module_postcalendar"]--></label>
    <select id="modvar_PostCalendar_searchend" name="modvar[PostCalendar][searchend]">
        <option value="0"><!--[gt text='now' domain="module_postcalendar"]--></option>
        <option value="1"><!--[gt text='next year' domain="module_postcalendar"]--></option>
        <option value="2" selected="selected"><!--[gt text='next %s years' tag1='2' domain="module_postcalendar"]--></option>
        <option value="5"><!--[gt text='next %s years' tag1='5' domain="module_postcalendar"]--></option>
        <option value="10"><!--[gt text='next %s years' tag1='10' domain="module_postcalendar"]--></option>
    </select>
</div>